<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//服务端接口分组
//Route::group(['middleware' => ['auth_server'],'prefix'=>'server'], function(){
//    Route::post('checkLogin', 'ServerManage\PassportController@checkLogin');
//});

//服务端接口分组
Route::group(['middleware' => ['auth_chat_server'],'prefix'=>'server'], function(){
    //房卡模式
    Route::post('createroom', 'ServerApi\ChatController@createRoom');
    Route::post('userjoin', 'ServerApi\ChatController@userjoin');
    Route::post('delroom', 'ServerApi\ChatController@delroom');
    //大房间模式
    Route::post('roomDetail', 'ServerApi\ChatController@roomdetail');
    Route::post('roomorder', 'ServerApi\ChatController@roomOrder');
    Route::post('userjoinRoom', 'ServerApi\ChatController@userjoinRoom');
});
Route::post('websocketinit', 'ServerApi\ChatController@websocketinit');


